package com.gkjsj.exam2;
import org.springframework.context.ApplicationContext;
import 
    org.springframework.context.support.ClassPathXmlApplicationContext;
public class TestDemo {
	public static void main(String[] args) {
		String xml = "com/gkjsj/exam2/beans.xml";
		ApplicationContext applicationContext = new ClassPathXmlApplicationContext(xml);
		TeacherService teacherService = (TeacherService)applicationContext.getBean("teacherService");
		teacherService.talk();
	
	}
}
